<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Hello JavaScript!</title>
    <script type="text/javascript">
      function showDate() {
        document.getElementById('test').innerHTML=Date();
      }
    </script>
  </head>
  <body>
    <h1>我的对个JavaScript程序</h1>
    <p id="test">这是一个段落</p>
    <button type="button" onclick="showDate()">显示日期</button>
  </body>
</html>
